* {
  padding: 0;
  margin: 0;
  list-style: none;
  outline: none;
  border: none;
}

a {
  text-decoration: none;
  outline: none;
  color: black;
}

body,
html {
  width: 100vw;
  height: 100%;
  color: #575757;
  background: #F2F2F2;
  font-size: 12px;
  overflow: auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 52px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  -webkit-border-radius: 0 0 8px 8px;
  -moz-border-radius: 0 0 8px 8px;
  -ms-border-radius: 0 0 8px 8px;
  -o-border-radius: 0 0 8px 8px;
}

header .header-top {
  box-sizing: border-box;
  padding: 26px 5px;
  position: relative;
}

header .header-top span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 16px;
  font-weight: 600;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}
header .header-top a {
  position: absolute;
  left: 14px;
  top: 20px;
}
header .header-top a img {
  width: 11px;
}


main {
  width: 100%;
  height: calc(100% - 124px);
  height: 85vh;
  overflow: scroll;
  margin-top: 52px;
  margin-bottom: 72px;
  /* border: 1px solid black; */
}

/* 隐藏滚动条 */
/* main::-webkit-scrollbar {
  display: none;
} */

@media screen and (min-width: 500px) {
  main {
    height: calc(700px - 124px);
  }
}

main ul {
  margin-top: 30px;
}

main ul li {
  margin-bottom: 15px;
}

main ul li div {
  /* border: 1px solid black; */
  width: 90%;
  margin: 0 auto;

  /* 清除浮动 */
  overflow: hidden;
}
main ul li div .img1 {
  float: left;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
main ul li div .img2 {
  float: left;
  width: 200px;
  border-radius:10px;
}
main ul li div p {
  float: left;
  line-height: 18px;
  margin-top: 10px;
  margin-left: 8px;
  box-sizing: border-box;
  padding: 5px 10px;
  background-color: #fff;
  max-width: 232px;
  color: #434343;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  word-break:break-all;
}

main ul .me div .img1{
  float: right;
}
main ul .me div .img2{
  float: right;
}

main ul .me div p {
  float: right;
  position: relative;
  right: 8px;
  color: #fff;
  background: linear-gradient(to right, #F2865B, #EC633B);
}
@media screen and (min-width: 500px) {
  main ul .me div p {
    right: calc(-375px + 383px);
  }
}






footer {
  width: 100%;
  height: 72px;
  background-color: #EBEBEB;
  /* border: 1px solid black; */
  position: fixed;
  bottom: 0;
  left: 0;
}

footer .send {
  width: 100%;
  /* border: 1px solid black; */
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.send input[type=text]{
  width: 70%;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  -webkit-border-radius: 14px;
  -moz-border-radius: 14px;
  -ms-border-radius: 14px;
  -o-border-radius: 14px;
  white-space: wrap;
}

.send div {
  width: 22px;
  height: 18px;
  background-image: url(/public/img/sctp.png);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 7px;
  overflow: hidden;
}
.send div input[type=file]{
  opacity: 0;
}

.send button {
  border: none;
  width: 45px;
  height: 23px;
  margin: 0 7px;
  text-align: center;
  line-height: 25px;
  font-size: 14px;
  color: #fff;
  background-color: #EC633B;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}


/* 媒体查询 */
@media screen and (min-width: 500px) {
  body {
    margin: 100px auto 0;
    width: 375px;
    height: 700px;
    border: 1px solid grey;
    z-index: 999;
  }
}